(function(){
    type HH ={
        name:string,
        age:number,
        a?:number
    }
    let obj:HH = {
        name: 'John Doe',
        age: 30,
        a:12
    }  
    interface flower {
        color:string,
        types:string
    }
    interface flower {
        price?: number
    }
    class Person implements flower {
        color:string;
        types:string;
        constructor(color:string,types:string) {
            this.color = color;
            this.types = types;
        }
        say() {
            console.log('走进来')
        }   
    }
    let p = new Person('红色','牡丹');
    console.log(p)
})()
